from django.db import models
from django.contrib.auth.models import User

class Waiver(models.Model):
    name = models.CharField(unique=True, max_length=50, default='')
    content = models.TextField()
    required =  models.BooleanField()
    date = models.DateField(auto_now_add=True)

class UserWaiver(models.Model):
    user = models.ForeignKey(User, related_name = "WaivedUser")
    waiver = models.ForeignKey(Waiver)
    agree =  models.BooleanField()
    signature = models.CharField(max_length = 50)
    signature_json = models.TextField()
    datetime = models.DateTimeField(auto_now_add=True)

